package com.doubao.hardware.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * 智能体Mapper接口
 */
@Mapper
public interface HardwaresmartDeviceMappe {

    /**
     * 根据智能体ID查询智能体信息
     * @param id 智能体ID
     * @return 智能体信息
     */
    @Select("SELECT id, name, avatar, description, prompt, category_id, ai_model_id, voice_type, api_key, api_base_url, voice_speed_ratio " +
            "FROM smart_device WHERE id = #{id} AND deleted = 0")
    Map<String, Object> selectById(@Param("id") Long id);
}